package com.lanyun.aicorrectassistant.basic.service.impl;

import com.lanyun.aicorrectassistant.basic.dao.GradingResultsDao;
import com.lanyun.aicorrectassistant.basic.entity.GradingResults;
import com.lanyun.aicorrectassistant.basic.service.GradingResultsService;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import java.util.List;

/**
 * AI批改结果表(GradingResults)服务实现
 *
 * @author makejava
 * @since 2025-05-12 01:53:58
 */
@Service
public class GradingResultsServiceImpl implements GradingResultsService {
    
    @Resource
    private GradingResultsDao gradingResultsDao;

    @Override
    public GradingResults queryById(Long id) {
        return gradingResultsDao.queryById(id);
    }

    @Override
    public GradingResults queryByCondition(GradingResults condition) {
        return gradingResultsDao.queryByCondition(condition);
    }

    @Override
    public List<GradingResults> queryAllByCondition(GradingResults condition) {
        return gradingResultsDao.queryAllByCondition(condition);
    }

    @Override
    public List<GradingResults> page(GradingResults condition, int page, int pageSize) {
        return gradingResultsDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(GradingResults entity) {
        return gradingResultsDao.insert(entity);
    }

    @Override
    public int update(GradingResults entity) {
        return gradingResultsDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return gradingResultsDao.deleteById(id);
    }

    @Override
    public Long count(GradingResults condition) {
        return gradingResultsDao.count(condition);
    }
}
